package io.renren.modules.gis_admin.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;


/**
 * 源数据
 *
 * @author Mark iu1340@163.com
 * @since 1.0.0 2023-09-21
 */
@Data
@ApiModel(value = "源数据")
public class BasinSourceDTO implements Serializable {

  private static final long serialVersionUID = 6790422180532074502L;

  @ApiModelProperty(value = "id")
  private Long id;

  @NotBlank(message = "数据源名称不能为空")
  @ApiModelProperty(value = "源数据名称", required = true)
  private String sourceName;

  @NotNull(message = "数据时间不能为空")
  @ApiModelProperty(value = "源数据时间 毫秒级时间戳", required = true)
  private Date sourceDate;

  @NotBlank(message = "文件路径不能为空")
  @ApiModelProperty(value = "源数据文件路径", required = true)
  private String filePath;

  @ApiModelProperty(value = "创建人id")
  @JsonProperty(access = JsonProperty.Access.READ_ONLY)
  private Long creator;

  @ApiModelProperty(value = "创建时间")
  @JsonProperty(access = JsonProperty.Access.READ_ONLY)
  private Date createDate;

  @ApiModelProperty(value = "更新时间")
  @JsonProperty(access = JsonProperty.Access.READ_ONLY)
  private Date updateDate;

  @ApiModelProperty(value = "删除时间")
  @JsonProperty(access = JsonProperty.Access.READ_ONLY)
  private Date deleteDate;
}